{literal}
<script type="text/javascript">
<!--
function confirmDelete(articleId) {
if (confirm("This will delete the registration information. Continue?"))
document.location = "admin.php?page=registerinfo&action=delete&username=" + articleId;
}

function apply(articleId) {
if (confirm("This will apply the registration information to the users profile. Continue?"))
document.location = "admin.php?page=registerinfo&action=apply&uname=" + articleId;
}
//-->
</script>
{/literal}
{if $numusers > 0}
<h2>New users that are part of the troop</h2>
<table width="100%" border="0" cellspacing="1" cellpadding="4" align="center" class="table">
<tr> 
  <th width="20%" class="smallhead">Action</th>
  <th width="20%" class="smallhead">Username</th>
  <th width="20%" class="smallhead">Patrol</th>
  <th width="20%" class="smallhead">Position</th>
</tr>

{section name=users loop=$numusers}
<tr>
  <td width="20%"  class="text"><a href="javascript:apply('{$row[users].uname}');" title="Apply information"><img src="{$tempdir}admin/images/published.png" border="0" alt="Apply Info" title="Apply Info" /></a> - <a href="admin.php?page=user_edit&amp;action=Edit&amp;id={$row[users].id}"><img src="{$tempdir}admin/images/edit.gif"  border="0"  alt="Edit" title="Edit" /></a> - <a href="javascript:confirmDelete('{$row[users].uname}')"><img src="{$tempdir}admin/images/delete.gif" border="0" alt="Delete Info" title="Delete Info" /></a></td>
  <td width="20%"  class="text">{$row[users].uname}</td>
  <td width="20%"  class="text">{$row[users].patrol}</td>
  <td width="20%"  class="text">
              {if $row[users].pos == 0}Administrator Access Level
			{elseif $row[users].pos == 1}Scouter Access Level
			{elseif $row[users].pos == 2}Troop Leader Access Level
			{elseif $row[users].pos == 3}Group Leader Access Level
			{elseif $row[users].pos == 4}Second Access Level
            {elseif $row[users].pos == 5}No Administration Panel Access{/if}</td>
</tr>
{/section}
</table>
{else}
<div align="center">No new users that are part of the troop</div>
{/if}
